{* $Id$ *}
{include_core file="admin/lib/header.html" title="合伙人订单简报"}
<div class="page-header border-bottom clearfix">
    <h2 class="left">合伙人订单简报<span>在这里查看合伙人的简报信息并导出</span></h2>
    <a href="{get_url()}&is_excel=1" class="btn btn-success btn-sm right">导出EXCEL</a>
</div>

<div class="search-form js_advancedForm">
    <form action="bulletin/admin/get_all_partner_bulletin" method="get" class="js_focusSearchForm">
        <input type="hidden" name="is_advenced" value="1">
        <input type="hidden" name="status" value="{$status}">
        <p>
            <label for="" class="search-f-label">合伙人姓名：</label>
            <input type="text" class="search-f-ipt1" name="search_filter[partner_name]" value="{$search_filter.partner_name}">
        </p>
        <p><label for="" class="search-f-label"></label><button type="submit" class="btn btn-success btn-xs js_searchBtn">搜索</button></p>
    </form>
</div>
{include_core file="admin/lib/pager.html"}
<table class="list-table">
    <thead>
    <tr>
        <th style="min-width:60px;">合伙人ID</th>
        <th style="min-width:60px;">合伙人姓名</th>
        <th style="min-width:120px;">所在地区</th>
        <th style="min-width:60px;">所属大区经理</th>
        <th style="min-width:60px;">掌柜数量</th>
        <th style="min-width:60px;">掌柜下单率</th>
        <th style="min-width:60px;">设备总和</th>
        <th style="min-width:60px;">订单总数</th>
        <th style="min-width:30px;">待收款</th>
        <th style="min-width:30px;">待配送</th>
        <th style="min-width:30px;">配送中</th>
        <th style="min-width:30px;">配送完</th>
        <th style="min-width:30px;">撤销</th>
        <th style="min-width:60px;">进货总量(箱)</th>
        <th style="min-width:60px;">出货总量(箱)</th>
        <th style="min-width:60px;">添加时间</th>
        <th style="min-width:60px;">更新时间</th>
    </tr>
    </thead>
    <tbody>
    {foreach $partner_bulletin_list as $k=>$v}
    <tr>
        <td>{$v.partner_id}</td>
        <td>{$v.partner_name}</td>
        <td>
            &nbsp;&nbsp;省：{$v.province_info}
            <br/>&nbsp;&nbsp;市：{$v.city_info}
        </td>
        <td>{$v.area_manager_name}</td>
        <td>{$v.store_num}</td>
        <td>{$v.store_order_rate}%</td>
        <td>{$v.is_bind_device_store_num}</td>
        <td>{$v.all_order_num}</td>
        <td>{$v.prepare_pay_order_num}</td>
        <td>{$v.prepare_delivery_order_num}</td>
        <td>{$v.in_delivery_order_num}</td>
        <td>{$v.finish_delivery_order_num}</td>
        <td>{$v.cancel_order_num}</td>
        <td>{$v.store_stock_goods_num}</td>
        <td>{$v.store_sell_goods_num}</td>
        <td>{$v.add_time}</td>
        <td>{$v.update_time}</td>
    </tr>
    {foreachelse}
    <tr><td class="txtleft" colspan="17">暂无数据</td></tr>
    {/foreach}
    </tbody>
</table>
<script type="text/javascript">
    $(function(){
        // 高级搜索
        $('.js_advanced').click(function(e){
            e.preventDefault();
            var thisObj = $(this);
            var outBox  = thisObj.closest('form');
            if (thisObj.hasClass('js_isOpen')) {
                thisObj.removeClass('js_isOpen open');
                outBox.find('input').show();
                outBox.find('button').show();
                $('.js_advancedForm').hide();
            } else {
                thisObj.addClass('js_isOpen open');
                outBox.find('input').hide();
                outBox.find('button').hide();
                $('.js_advancedForm').show();
            }
        });

    });
</script>
{include_core file="admin/lib/pager.html"}
<!--end:列表-->
{load_js file='zclip/jquery.zclip.min.js'}
{load_js file='zclip/ZeroClipboard.js'}
{include_core file="admin/lib/footer.html"}
